package com.itheima.reggie.util;

public class BaseContext {

    private static ThreadLocal<Long> tl = new ThreadLocal<>();

    //存数据
    public static void setId(Long id) {
        tl.set(id);
    }

    //取数据
    public static Long getId() {
        Long id = tl.get();
        return id;
    }
}
